﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class student_webcon_nav : System.Web.UI.UserControl
{
    Student stu;
    protected void Page_Load(object sender, EventArgs e)
    {
        stu = Student.Check();
        if (stu == null)
        {
            Session.Add(Params.SystemError, "请先登录");
            Response.Redirect(Params.RootHttp + "default.aspx");
        }
        if (stu.Email == "" && !Fun.IsProfilePage() && !Page.IsPostBack)
        {
            Fun.Redirect(Params.StudentFolderHttp + "profile.aspx?uid=" + Request.Params["uid"], "请完整个人信息！");
        }
        int n = stu.NotReadYeatNum;
        if (n > 0)
        {
            this.hlRecv.Text = "收件箱（" + n.ToString() + "）";
            this.hlRecv.Font.Bold = true;
        }
        this.hlRecv.NavigateUrl = Params.StudentFolderHttp + "recv.aspx?uid=" + Request.Params["uid"];
    }

    public string Title
    {
        set
        {
            this.hTitle.InnerText = value;
        }
    }

    public string PageHeader
    {
        set
        {
            this.divHeader.InnerText = value;
        }
    }
}
